#if !defined(AFX_CURVEWND_H__4A6BC423_6F48_4B81_81AE_AB8CEC580077__INCLUDED_)
#define AFX_CURVEWND_H__4A6BC423_6F48_4B81_81AE_AB8CEC580077__INCLUDED_

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
// CurveWnd.h : header file
//

/////////////////////////////////////////////////////////////////////////////
// CCurveWnd window

#define WM_APP_HSCROLL   (WM_APP+100)
#define WM_APP_VSCROLL   (WM_APP+101)

struct RecordAckStruct;
struct CurveParamStruct;

class CCurveWnd : public CWnd
{
// Construction
public:
	CCurveWnd();

// Attributes
protected:
	int m_nHMax;
	int m_nVMax;
	int m_nHPos;
	int m_nVPos;

// Operations
public:
  bool Create(CWnd * pParentWnd);
  void DrawCurve(CDC& dc);
  void UpdateDisplay();
  void SetHorzMax(int nHMax);
  void SetVertMax(int nVMax);
  void SetHorzPos(int nHPos);
  void SetVertPos(int nVPos);
  int GetHorzMax() const {return m_nHMax;}
  int GetVertMax() const {return m_nVMax;}
  int GetHorzPos() const {return m_nHPos;}
  int GetVertPos() const {return m_nVPos;}
  void GetCurveParam(CurveParamStruct * pCurveParamStruct) const;
  RecordAckStruct * GetCurveData() const;
  int GetCurveStatus() const;
  CFont * GetpFont() const;

// Overrides
	// ClassWizard generated virtual function overrides
	//{{AFX_VIRTUAL(CCurveWnd)
	//}}AFX_VIRTUAL

// Implementation
public:
	virtual ~CCurveWnd();

	// Generated message map functions
protected:
	//{{AFX_MSG(CCurveWnd)
	afx_msg void OnPaint();
	afx_msg void OnSize(UINT nType, int cx, int cy);
	afx_msg void OnHScroll(UINT nSBCode, UINT nPos, CScrollBar* pScrollBar);
	afx_msg void OnVScroll(UINT nSBCode, UINT nPos, CScrollBar* pScrollBar);
	afx_msg void OnContextMenu(CWnd* pWnd, CPoint point);
	//}}AFX_MSG
	DECLARE_MESSAGE_MAP()
};

/////////////////////////////////////////////////////////////////////////////

//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.

#endif // !defined(AFX_CURVEWND_H__4A6BC423_6F48_4B81_81AE_AB8CEC580077__INCLUDED_)
